import { createEnum } from '@/utils/createEnum';

// 挂号搜索类型 RegistrationSearchType
export enum REGISTRATION_SEARCH_TYPE {
  // 科室
  DEPARTMENT,
  // 医生
  DOCTOR
}

export const registrationSearchTypeList = createEnum([
  ['DEPARTMENT', REGISTRATION_SEARCH_TYPE.DEPARTMENT, '科室'],
  ['DOCTOR', REGISTRATION_SEARCH_TYPE.DOCTOR, '医生']
]);

// 预约挂号搜索方式
export enum APPOINTMENT_SEARCH_TYPE {
  // 按照时间挂号
  TIME,
  // 按医生挂号
  DOCTOR
}

export const appointmentSearchTypeList = createEnum([
  ['TIME', APPOINTMENT_SEARCH_TYPE.TIME, '按照时间挂号'],
  ['DOCTOR', APPOINTMENT_SEARCH_TYPE.DOCTOR, '按医生挂号']
]);

// 是否已有号 1:有号 2：无号
export enum APPOINTMENT_STATUS {
  // 有号
  HAVE = 1,
  // 无号
  NONE = 2
}
